/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.aes.inventory;

import java.util.Random;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author Raghav
 */
@WebService(serviceName = "Inventory")
public class Inventory {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getStock")
    public boolean getStock(@WebParam(name = "modelname")
    String modelname, @WebParam(name = "manufacturername")
    String manufacturername) {
        Random r=new Random();
        int myProb=r.nextInt(50);
        if(myProb%2==0)
            return true;
        else
            return false;
    }

   
}
